import java.util.*;

public class UseGuessDateClass {
    public static void main(String[] args) {
        int date = 0;
        int answer;
        
        Scanner scan = new Scanner(System.in);
        
        for (int i = 0; i < 5; i++) {
            System.out.println("Is ur brthday in Set" + (i + 1) + " ?");
            for (int j = 0; j < 4; j++) {
                for (int k = 0; k < 4; k++) {
                    System.out.print(GuessDate.getValue(i, j, k) + " ");
                }
                System.out.println();
            }
            
            System.out.print("\nEnter 0 for No and 1 for Yes: ");
            answer = scan.nextInt();
            
            if (answer == 1) {
                date += GuessDate.getValue(i, 0, 0);
            }
        }
        System.out.println("Ur brthday is " + date);
    }
}